package com.hl.sfzy.service.content;


import java.time.LocalDateTime;
import java.util.List;

import com.github.pagehelper.PageInfo;
import com.hl.sfzy.entity.content.Article;

/**
 * @description: 文章服务接口
 * @version 0.1.0
 * @company : www.hailiang.tech
 * @authour : fireflyshen
 * @implNote {@link com.hl.sfzy.service.content.impl.ArticleServiceImpl}
 */
public interface ArticleService {
    

    PageInfo<Article> getArticles(Integer pageNum,Integer pageSize);


    int addArticle(Article article);


    int removeArticle(Integer id);


    Article getArticleById(Long id);


    PageInfo<Article> searchArticles(String key,LocalDateTime starTime,LocalDateTime endTime,Integer pageNum,Integer pageSize);

    int updateArticle(Article article);
    
}
